package com.viking.feign;

import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "product-service",path = "/product")
public interface ProductFeignService {
    @RequestMapping("/get/{id}")
    String get(@PathVariable("id") Integer id);

    /**
     * 使用feign原生注解
     */
//    @RequestLine("GET /get/{id}")
//    String get(@Param("id")  Integer id);
}
